/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.entry;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.HashMap;
import java.util.Map;

/**
 * 类的功能描述
 *
 * @author 王丹
 * @since 2017-03-10
 */
public class AceTreeDto{

    private String text;
    private String type;
    /**
     * 子节点的信息
     */
    private AdditionalParameters additionalParameters;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public AdditionalParameters getAdditionalParameters() {
        return additionalParameters;
    }

    public void setAdditionalParameters(AdditionalParameters additionalParameters) {
        this.additionalParameters = additionalParameters;
    }

    public static class AdditionalParameters{

        private Long id;
        @JsonProperty("item-selected")
        private boolean itemSelected ;
        private Map<String,AceTreeDto> children = new HashMap<String,AceTreeDto>();

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public boolean isItemSelected() {
            return itemSelected;
        }

        public void setItemSelected(boolean itemSelected) {
            this.itemSelected = itemSelected;
        }

        public Map<String, AceTreeDto> getChildren() {
            return children;
        }

        public void setChildren(Map<String, AceTreeDto> children) {
            this.children = children;
        }
    }
}
